package com.knife.changerecord.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.knife.common.constants.BaseConstants;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 变更记录行表
 * @TableName change_record_tx_line
 */
@Data
public class ChangeRecordTxLine implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 关联头表
     */
    private Long txHeaderId;

    /**
     * 字段名
     */
    private String fieldName;

    /**
     * 旧值
     */
    private String oldValue;

    /**
     * 旧值含义
     */
    private String oldValueMeaning;

    /**
     * 新值
     */
    private String newValue;

    /**
     * 新值含义
     */
    private String newValueMeaning;

    /**
     * 租户id
     */
    private Long tenantId;

    /**
     * 
     */
    private Long objectVersionNumber;

    /**
     * 
     */
    private Long createdBy;

    /**
     * 
     */
    @JsonFormat(pattern = BaseConstants.Pattern.DATETIME,timezone = "GMT+8")
    @DateTimeFormat(pattern = BaseConstants.Pattern.DATETIME)
    private Date creationDate;

    /**
     * 
     */
    private Long lastUpdatedBy;

    /**
     * 
     */
    @JsonFormat(pattern = BaseConstants.Pattern.DATETIME,timezone = "GMT+8")
    @DateTimeFormat(pattern = BaseConstants.Pattern.DATETIME)
    private Date lastUpdateDate;

    private static final long serialVersionUID = 1L;
}